<%@ page language="java"  pageEncoding="utf-8"%>
<%@ page import="com.ejoysoft.wlanyz.business.Ac,com.ejoysoft.wlanyz.business.Comunity,com.ejoysoft.common.Format,com.ejoysoft.common.exception.IdObjectException,java.util.ArrayList,java.text.DecimalFormat,com.ejoysoft.common.Constants,com.ejoysoft.common.exception.NoRightException" %>
<%@page import="java.util.Vector"%>
<%@ include file="../include/jsp/head.jsp"%>
<%
try{
	String strCommId = ParamUtil.getString(request,"strCommId","");

	if(strCommId.equals(""))
    	throw new IdObjectException("请求处理的信息id为空！或者已经不存在");
    String where="where strCommId='"+strCommId+"'";
    Comunity obj=new Comunity(globa,false);
    Comunity obj0=obj.show(where);
    if(obj0==null){
        globa.closeCon();
        throw new IdObjectException("请求处理的信息id='"+strCommId+"'对象为空！","请检查该信息的相关信息");
    }

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<title><%=application.getAttribute("APP_TITLE")%></title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #F8F9FA;
}
body,td,th {
	font-size: 9pt;
	color: #111111;
}
-->
</style>

<script src="../include/js/chkFrm.js"></script>
<script language="javascript">

 function chkFrm() {
        
       	frm.submit();
    }

 function showAc(){
  frm.submit();
 }
</script>
</head>


<body>
<form name="frm" method="post" action="comunity_act.jsp" >
<input type="hidden" name="<%=Constants.ACTION_TYPE%>" value="<%=Constants.UPDATE_STR%>">
<input type="hidden" name=strCommId value="<%=obj0.getStrCommId()%>">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><img src="../images/ri_list.jpg" width="14" height="14" align="absbottom" />&nbsp;您现在所在的位置：<font color="#0e7cc9">小区信息管理</font> &gt; 小区信息修改 </td>
  </tr>
</table>
<br>
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>
    <td width="6%" class="listtit1"  style="border-left:1px solid #32a4ea;">&nbsp;小区信息修改</td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF" class="listd" style="border-left:1px solid #dddddd;border-right:1px solid #dddddd;"><table width="702" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="20" colspan="4">&nbsp;</td>
      </tr>
      
      <tr>
        
        <td align="right" class="tdwz">地市：</td>
        <td><select name="strCity" class="input_box">
        <option value=''>- - - - -请选择- - - - -     </option>
                 <%
                  //从全局变量中读取用户类型
                  String city = (String)application.getAttribute("CITY");
                  city = city !=null ? city:"";
                  String tempString = obj0.getStrCity()==null?"":obj0.getStrCity();
                  String  strCity=ParamUtil.getString(globa.request,"strCity",tempString);
                  String[] citys = city.split(",");
                  for (int i = 0; i < citys.length; i++) {
              %>
                <option value="<%=citys[i]%>" <%if(strCity!=null && strCity.equals(citys[i])) out.print("selected");%>><%=citys[i]%></option>
              <%
                  }
              %> 
                 </select></td>
        <td>&nbsp;</td>
      </tr>
      </tr>
      <tr>
         
        <td align="right" class="tdwz">区县：</td>
        <td><input name="strTown" type="text"  value="<%=Format.forbidNull(obj0.getStrTown())%>"class="ipt"/></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
         
        <td   align="right" class="tdwz">小区名：</td>
        <%  String name="";
               if(obj0.getStrSiteName()!=null)name=obj0.getStrSiteName();%>
        <td ><input type="text"  class="ipt" name="strSiteName"  readonly="readonly"   value="<%=name%>"/>&nbsp;<font size="2" color="#FF0000">提示：小区名不可修改</font>
        </td>
        <td ></td>
      </tr>
      
      <tr>
         
        <td align="right" class="tdwz">小区站号：</td>
        <td><input name="strSiteNum" type="text" value="<%=Format.forbidNull(obj0.getStrSiteNum())%>" class="ipt" /></td>
        <td>&nbsp;</td>
      </tr>
      
      <tr>
         
        <td align="right" class="tdwz">经度：</td>
        <td><input name="strLongitude" type="text" value="<%=Format.forbidNull(obj0.getStrLongitude())%>" class="ipt" /></td>
        <td>&nbsp;</td>
      </tr>
      
      <tr>
         
        <td align="right" class="tdwz">纬度：</td>
        <td><input name="strLatitude" type="text" value="<%=Format.forbidNull(obj0.getStrLatitude())%>" class="ipt" /></td>
        <td>&nbsp;</td>
      </tr>
        
      <tr>
        
        <td align="right" class="tdwz">LAC：</td>
        <td><input name="strLac" type="text" value="<%=Format.forbidNull(obj0.getStrLac())%>" class="ipt" /></td>
        <td>&nbsp;</td>
      </tr>
          
      <tr>
         
        <td align="right" class="tdwz">CI：</td>
        <td><input name="strCI" type="text" value="<%=Format.forbidNull(obj0.getStrCI())%>" class="ipt" /></td>
        <td>&nbsp;</td>
      </tr>
          
      <tr>
         
        <td align="right" class="tdwz">站址状态：</td>
        <td><select name="strSiteAttitude" class="input_box">
        <option value=''>- - - - -请选择- - - - -     </option>
                 <%
                  //从全局变量中读取用户类型
                  String siteTud = (String)application.getAttribute("SITE_TUD");
                  siteTud = siteTud !=null ? siteTud:"";
                  String temString = obj0.getStrSiteAttitude()==null?"":obj0.getStrSiteAttitude();
                  String  strSiteAttitude=ParamUtil.getString(globa.request,"strSiteAttitude",temString);
                  String[] siteTuds = siteTud.split(",");
                  for (int i = 0; i < siteTuds.length; i++) {
              %>
                <option value="<%=siteTuds[i]%>" <%if(strSiteAttitude!=null && strSiteAttitude.equals(siteTuds[i])) out.print("selected");%>><%=siteTuds[i]%></option>
              <%
                  }
              %> 
                 </select></td>
      </tr>
           
      <tr>
         
        <td align="right" class="tdwz">站型：</td>
        <td><select name="strSiteType" class="input_box">
        <option value=''>- - - - -请选择- - - - -     </option>
                 <%
                  //从全局变量中读取用户类型
                  String siteType = (String)application.getAttribute("SITE_TYPE");
                  siteType = siteType !=null ? siteType:"";
                  String teString = obj0.getStrSiteType()==null?"":obj0.getStrSiteType();
                  String  strSiteType=ParamUtil.getString(globa.request,"strSiteType",teString);
                  String[] siteTypes = siteType.split(",");
                  for (int i = 0; i < siteTypes.length; i++) {
              %>
                <option value="<%=siteTypes[i]%>" <%if(strSiteType!=null && strSiteType.equals(siteTypes[i])) out.print("selected");%>><%=siteTypes[i]%></option>
              <%
                  }
              %> 
                 </select></td>
      </tr>
        <tr>
         
        <td align="right" class="tdwz">操作人：</td>
        <td><input name="strCreator" type="text" value="<%=Format.forbidNull(obj0.getStrCreator())%>" class="ipt" /></td>
        <td>&nbsp;</td>
      </tr>
             
      <tr>
         
        <td align="right" class="tdwz">所在地址：</td>
        <td><input name="strSiteAddr" type="text" value="<%=Format.forbidNull(obj0.getStrSiteAddr())%>" class="ipt" /></td>
        <td>&nbsp;</td>
      </tr>

	  <tr>
         <td width="35%" height="30" align="right" class="left_txt2"><font size="2px">备注：</font></td>
         <td align="left">
            <textarea id="strSiteRemark" name="strSiteRemark"   class="input_box" rows="5" cols="25"/><%=Format.forbidNull(obj0.getStrSiteRemark())%></textarea>
         </td> 
      </tr> 
       
      <tr>
         
        <td height="50" align="left">&nbsp;&nbsp;</td>
        <td height="50" colspan="2" align="left"><input name="B1" type="button"   value="确  定" onclick="chkFrm()"  class="ipt1" style="cursor:hand"/>
          &nbsp;<input  name="B12" type="reset"  value="取 消" class="ipt2" style="cursor:hand"/>
          &nbsp;<input name="B12" type="button"  onclick="window.location.href='comunity_list.jsp';" value="返 回" class="ipt2" style="cursor:hand"/></td>
        </tr>
    </table>
      <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p></td>
  </tr>
</table>

 </form>
</body>
</html>
<%}catch(Exception e){e.printStackTrace();} %>
<%@ include file="../include/jsp/footer.jsp"%>